package com.util.vmwareops;
import java.util.Map;
import java.util.HashMap;
public class DBConnectionPoolFactory {
    private static Map<String, DBConnectionPool> dbMap = new HashMap<String, DBConnectionPool>();
    private DBConnectionPoolFactory() {}
    public synchronized static DBConnectionPool getDBConnectionPool(String dbName) {
        if(dbMap.get(dbName) == null) {
            dbMap.put(dbName, new DBConnectionPool(dbName, "root", "root1234"));
        }
        return dbMap.get(dbName);
    }
}
